package com.huatek.test.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anders
 * @since 2018/11/4 12:36
 */
@RestController
public class HelloController {

    @GetMapping("/hi")
    String sayhi(@RequestParam("name") String name){
        return "hello,"+name;
    }

    @GetMapping("/ha")
    String sayha(@RequestParam("name") String name){
        return "hello,world"+name;
    }
}
